package com.ssy.lingxi.system.dao;

import com.ssy.lingxi.system.entity.MiddlegroundMenu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MiddlegroundMenuRepository extends JpaRepository<MiddlegroundMenu, Long> {

    List<MiddlegroundMenu> findAllByParentIdAndTypeEquals(Long parentId,Integer type);
    List<MiddlegroundMenu> findAllByTypeEquals(Integer type);



    void deleteAllByParentIdEquals(Long parentId);
}
